#! /bin/bash
# 官网地址 http://download.mlsql.tech/1.6.0-SNAPSHOT/mlsql-engine_3.0-1.6.0-SNAPSHOT.tar.gz
download_url=http://download.mlsql.tech/1.6.0-SNAPSHOT
#download_url=http://192.168.100.41/tar
engine_url="${download_url}"/mlsql-engine_3.0-1.6.0-SNAPSHOT.tar.gz 
cluster_url="${download_url}"/mlsql-console-1.6.0-SNAPSHOT.tar.gz
console_url="${download_url}"/mlsql-cluster-2.4_2.11-1.6.0-SNAPSHOT.tar.gz 

log_dir=/var/log/mlsql-download.log

echo $engine_url
echo $cluster_url
echo $console_url

echo "downloag mlsql-engine"
wget $engine_url  -O /tmp/mlsql-engine.tar.gz  -a  $log_dir

echo "downloag mlsql-cluster"
wget $cluster_url  -O /tmp/mlsql-cluster.tar.gz   -a  $log_dir

echo "downloag mlsql-console"
wget $console_url  -O /tmp/mlsql-console.tar.gz  -a  $log_dir

